package com.hutu.erp.catalog.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品属性值对象 catalog_product_attribute_value
 * 
 * @author ruoyi
 * @date 2021-05-24
 */
public class ProductAttributeValue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品属性值id */
    private Long attributeValueId;

    /** 商品的商品属性id */
    @Excel(name = "商品的商品属性id")
    private Long mappingId;

    /** 商品属性值的显示值 */
    @Excel(name = "商品属性值的显示值")
    private String attributeValueName;

    /** 值类型 */
    @Excel(name = "值类型")
    private Long attributeValueType;

    /** 加个修正值（此单品、sku的价格 等于 商品价格 + 此值） */
    @Excel(name = "加个修正值", readConverterExp = "此=单品、sku的价格,等=于,商=品价格,+=,此=值")
    private BigDecimal priceAdjustment;

    /** 是否默认选中此值（1代表默认选中 0代表不选中） */
    @Excel(name = "是否默认选中此值", readConverterExp = "1=代表默认选中,0=代表不选中")
    private Integer isPreSelected;

    /** 该商品属性值对应的图片id */
    @Excel(name = "该商品属性值对应的图片id")
    private Long pictureId;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private Integer deleted;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer displayOrder;

    public void setAttributeValueId(Long attributeValueId) 
    {
        this.attributeValueId = attributeValueId;
    }

    public Long getAttributeValueId() 
    {
        return attributeValueId;
    }
    public void setMappingId(Long mappingId) 
    {
        this.mappingId = mappingId;
    }

    public Long getMappingId() 
    {
        return mappingId;
    }
    public void setAttributeValueName(String attributeValueName) 
    {
        this.attributeValueName = attributeValueName;
    }

    public String getAttributeValueName() 
    {
        return attributeValueName;
    }
    public void setAttributeValueType(Long attributeValueType) 
    {
        this.attributeValueType = attributeValueType;
    }

    public Long getAttributeValueType() 
    {
        return attributeValueType;
    }
    public void setPriceAdjustment(BigDecimal priceAdjustment) 
    {
        this.priceAdjustment = priceAdjustment;
    }

    public BigDecimal getPriceAdjustment() 
    {
        return priceAdjustment;
    }
    public void setIsPreSelected(Integer isPreSelected) 
    {
        this.isPreSelected = isPreSelected;
    }

    public Integer getIsPreSelected() 
    {
        return isPreSelected;
    }
    public void setPictureId(Long pictureId) 
    {
        this.pictureId = pictureId;
    }

    public Long getPictureId() 
    {
        return pictureId;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setDisplayOrder(Integer displayOrder) 
    {
        this.displayOrder = displayOrder;
    }

    public Integer getDisplayOrder() 
    {
        return displayOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("attributeValueId", getAttributeValueId())
            .append("mappingId", getMappingId())
            .append("attributeValueName", getAttributeValueName())
            .append("attributeValueType", getAttributeValueType())
            .append("priceAdjustment", getPriceAdjustment())
            .append("isPreSelected", getIsPreSelected())
            .append("pictureId", getPictureId())
            .append("deleted", getDeleted())
            .append("displayOrder", getDisplayOrder())
            .toString();
    }
}
